package com.jkhan.movie.controller;


import com.jkhan.common.result.ResponseEntity;
import com.jkhan.model.Seats;
import com.jkhan.movie.service.SeatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 座位信息表 前端控制器
 * </p>
 *
 * @author jkhan
 * @since 2023-03-04
 */
@RestController
@RequestMapping("/movie/seats")
public class SeatsController {

    @Autowired
    public SeatsService seatsService;

    @GetMapping("/list")
    public ResponseEntity<List<Seats>> getList() {
        List<Seats> list = seatsService.list();
        return ResponseEntity.ok(list);
    }

}

